package org.stormphoenix.bbsfamily

import com.github.dozermapper.core.DozerBeanMapperBuilder
import com.github.dozermapper.core.Mapper
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.context.annotation.Bean

@SpringBootApplication
class App {
    @Bean("dozerMapper")
    fun dozerMapper(): Mapper = DozerBeanMapperBuilder.buildDefault()
}

fun main(args: Array<String>) {
    SpringApplication.run(App::class.java, *args)
}